<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="pm" uri="http://www.keystudio.com/tags/premission"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function navTabAjax(json){
navTabAjaxDone(json);
navTab.reload();
}
function dialogAjax(json){
dialogAjaxDone(json);
navTab.reload();
}
</script>
</head>
<body>
<form id="pagerForm" method="post" action="user/query"><input
	type="hidden" name="pageNum" value="1" /> <input type="hidden"
	name="numPerPage" value="${user.everyPage }" />
<div class="pageHeader">
<div class="searchBar">
<table class="searchContent">
	<tr>
		<td><lable>登录名:</lable><input type="text" name="loginName"
			id="loginName" value="${user.loginName }" /></td>
		<td><label> 名称:</label><input type="text" name="name" id="name"
			value="${user.name }" /></td>
		<td><label> 所属组织:</label><input type="hidden" name="groupId"
			id="groupId" value="${user.groupId }" /> <input type="text"
			name="groupName" id="groupName" value="${user.groupName }"
			suggestFields="groupName" suggestUrl="org/select" /></td>
		<td><a class="btnLook" href="org/search" lookupGroup="">查找带回</a>
		</td>
	</tr>
</table>
<div class="subBar">
<ul>
	<li>
	<div class="buttonActive">
	<div class="buttonContent">
	<button type="submit">检索</button>
	</div>
	</div>
	</li>
</ul>
</div>
</div>
</form>
</div>
<div class="pageContent">
<div class="panelBar">
<ul class="toolBar">
	<li><a class="add" href="jsp/user/new.jsp" target="navTab"><span>新建</span></a></li>
</ul>
</div>
<table class="table" width="100%" layoutH="137">
	<thead>
		<tr>
			<th>ID</th>
			<th>用户名</th>
			<th>姓名</th>
			<th>身份证号</th>
			<th>单位</th>
			<th>手机</th>
			<th>座机</th>
			<th>性别</th>
			<th>出生年月日</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="item" varStatus="status">
			<tr>
				<td>${item.id }</td>
				<td>${item.loginName }</td>
				<td>${item.name }</td>
				<td>${item.cardNo }</td>
				<td>${item.unit }</td>
				<td>${item.phoneNo }</td>
				<td>${item.tel }</td>
				<td>
				<c:choose>
					<c:when test="${item.sex eq '0'}">女</c:when>
					<c:when test="${item.sex eq '1'}">男</c:when>
				</c:choose>
				</td>
				<td>${item.entryTime }</td>
				<td><a target="navTab" href="user/edit?id=${item.id }">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a
					title="确认删除吗？" callback="navTabAjax" target="ajaxTodo"
					href="user/delete?id=${item.id }">删除</a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div class="panelBar">
<div class="pages">共${user.totalCount}条</span></div>
<div class="pagination" targetType="navTab"
	totalCount="${user.totalCount}" numPerPage="${user.everyPage }"
	pageNumShown="10" currentPage="${user.pageNum}"></div>
</div>
</div>
</body>
</html>